package cn.wxxyhw.Util;

/**
 * 产生验证码
 * @Author: 洪稳
 * @Date: 2019/6/3
 */
public class CodeUtil {
    private static String code="";

    /**
     * 产生验证码
     * @return
     */
    public static String getCode(){
        code = "";
        for (int i = 0;i<6;i++) {
            code += Math.round(Math.random() * 10);
        }
        return code;
    }
}
